
/*
 * Class Answer.
 * Stores answer text. Must be specified as correct or incorrect. Selected is false when object is created.
 */
public class Answer implements Cloneable {
	
	private String answerText;
	private boolean correct;
	private boolean selected;
	
	public Answer(String answerText, boolean correct) {
		this.answerText = answerText;
		this.correct = correct;
		this.selected = false;
	}
	
	public String getAnswerText() {
		return answerText;
	}
	
	public void setAnswerText(String answerText) {
		this.answerText = answerText;
	}
	
	public boolean isCorrect() {
		return correct;
	}
	
	public void setCorrect(boolean correct) {
		this.correct = correct;
	}
	
	public boolean isSelected() {
		return selected;
	}
	
	public void select() {
		selected = true;
	}
	
	public void unSelect() {
		selected = false;
	}

}
